package jnpf.service;

import jnpf.entity.utils.IdUtils;
import jnpf.mapper.EvalCreateVerMapper;
import jnpf.model.create.dto.CreateVerDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EvalCreateVerService {

    @Autowired
    private EvalCreateVerMapper evalCreateVerMapper;

    public boolean evalCreateVer(CreateVerDTO createVerDTO) {
        createVerDTO.setVId(IdUtils.getUUID());
        int result = evalCreateVerMapper.evalCreateVer((createVerDTO));
        boolean flag = false;
        if (result == 1) {
            flag = true;
        }
        return flag;
    }
}
